import {discount} from "@/api/discountapi.js";

export let discountstore={
    module:{

    },
    state:{
        arr:[]
    },
    getters:{

    },
    mutations:{
        getdiscount(state,payload){
            state.arr=payload
            // console.log(state.arr)
        }
    },
    actions:{
        sends(store){
            discount("/api/xiaomipro/goods/discount2").then((ok)=>{  
                 
                store.commit("getdiscount",ok.data.discount)
            })
        }
    },
}